package lz77;

import java.io.Serializable;

public class LZ77Tupel implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	int index;
	int length;
	char c;

	public LZ77Tupel(int index, int length, char c) {
		this.index = index;
		this.length = length;
		this.c = c;
	}

	public LZ77Tupel(char c) {
		this.c = c;
	}

	public int getIndex() {
		return index;
	}

	public int getLength() {
		return length;
	}

	public char getChar() {
		return c;
	}

	public String toString() {
		return "(" + index + "," + length + "," + c + ")";
	}

}
